from rest_framework.pagination import PageNumberPagination, LimitOffsetPagination


class LargeResultsSetPagination(PageNumberPagination):
    page_size = 1000
    page_size_query_param = 'page_size'
    max_page_size = 10000


class StandardResultsSetPagination(PageNumberPagination):
    page_size = 10
    page_size_query_param = 'page_size'
    max_page_size = 1000


class MyLimitOffsetPagination(LimitOffsetPagination):
    default_limit = 100
    max_limit = 100
    limit_query_param = 'limit'    # 可修改为你喜欢的词
    offset_query_param = 'offset'
